package com.pattern.Adapter;

public class PrintBannerWithDelegate extends PrintClass{

    private String add;
    private Banner adapter;

    public PrintBannerWithDelegate(String add) {
        adapter = new Banner(add);
    }

    String printWeak() {
        return adapter.showWithParen();
    }

    String printStrong() {
        return adapter.showWidthStar();
    }

    public static void main(String[] args) {
        PrintClass print = new PrintBannerWithDelegate("I am zhangxin, I am learning pattern");
        System.out.println(print.printStrong());
        System.out.println(print.printWeak());
    }

}
